package com.lala.rennigou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lala.rennigou.pojo.EasybuyOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EasybuyOrderMapper extends BaseMapper<EasybuyOrder> {
    EasybuyOrder selectUserID(int userid);

    List<EasybuyOrder> myOrder(int userid);

    List<EasybuyOrder> allOrder();

    List<EasybuyOrder> selectByID(@Param("userid") int  userid);

    int tuikuan(int id);
}
